#ifndef OXFORD3000UPDATER_H
#define OXFORD3000UPDATER_H

#include <QObject>
#include <QRunnable>

#include "database-manager.h"
#include "oxford-parser.h"
#include "oxford-loader.h"

namespace Oxford
{

class List3000Updater : public QObject, public QRunnable
{
    Q_OBJECT
private:
    Core::DatabaseManager* databaseManager;
    Parser oxfordParser;
    Loader oxfordLoader;
public:
    explicit List3000Updater();
    ~List3000Updater();
    void run();

signals:
    void updateStarted();
    void updateFinished();

    void logMessage(const QString& message);
    void logError(const QString& error);
};

}

#endif // OXFORD3000UPDATER_H
